/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 *
 */

import { isWindows } from '@ohos/hvigor-common';

// 该文件中定义的场景变动需谨慎和评审,需要同步到hvigor-cli和IDE中!!!
export const HVIGOR_ENGINE_PACKAGE_NAME = '@ohos/hvigor';

export const PNPM_TOOL = isWindows() ? 'pnpm.cmd' : 'pnpm';
export const NPM_TOOL = isWindows() ? 'npm.cmd' : 'npm';
export const HVIGOR = 'hvigor';
export const PNPM = 'pnpm';

export const DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME = 'hvigor-config.json5';
export const DEFAULT_OH_PACKAGE_JSON_FILE_NAME = 'oh-package.json5';
export const DEFAULT_PACKAGE_JSON = 'package.json';
export const HVIGOR_USER_HOME_DIR_NAME = '.hvigor';
export const PROJECT_CACHES = 'project_caches';

export const WORK_SPACE = 'workspace';

export const HVIGOR_CACHE_DIR_KEY = 'hvigor.cacheDir';
export const ENABLE_SIGN_TASK_KEY = 'enableSignTask';
export const BUILD_CACHE_DIR = 'build-cache-dir';
export const HVIGOR_POOL_MAX_SIZE = 'hvigor.pool.maxSize';
export const HVIGOR_POOL_MAX_CORE_SIZE = 'hvigor.pool.maxCoreSize';
export const HVIGOR_POOL_CACHE_CAPACITY = 'hvigor.pool.cache.capacity';
export const HVIGOR_POOL_CACHE_TTL = 'hvigor.pool.cache.ttl';
export const OHOS_ARK_COMPILE_MAX_SIZE = 'ohos.arkCompile.maxSize';

export const HVIGOR_ENABLE_MEMORY_CACHE = 'hvigor.enableMemoryCache';

export const OHOS_ARK_COMPILE_SOURCE_MAP_DIR = 'ohos.arkCompile.sourceMapDir';

export const HVIGOR_MEMORY_THRESHOLD = 'hvigor.memoryThreshold';

export const PROPERTIES = 'properties';
export const DOT = '.';

export const DAEMON = 'daemon';
export const INCREMENTAL = 'incremental';
export const PARALLEL = 'typeCheck';
export const ANALYZE = 'analyze';
export const LOG_LEVEL = 'logLevel';

export const INCREMENTAL_INPUT_OUTPUT_CACHE = 'hvigor.incremental.optimization';


export const INCREMENTAL_OPTIMIZATION = 'hvigor.task.schedule.optimization';

export const ENABLE_OVERRIDES_DEPENDENCY_MAP = 'enableOverridesDependencyMap';

